﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace NgpSharp
{
    public class SHEncoderLoader : DLLLoader
    {
        [DllImport("SHEncoder", EntryPoint = "sh_encode_forward")]
        public static extern void sh_encode_forward(IntPtr inputs, IntPtr outputs, uint B, uint D, uint C, IntPtr dy_dx);
        [DllImport("SHEncoder", EntryPoint = "sh_encode_backward")]
        public static extern void sh_encode_backward(IntPtr grad, IntPtr inputs, uint B, uint D, uint C, IntPtr dy_dx, IntPtr grad_inputs);
    }
}
